package test.json;

import java.sql.BatchUpdateException;

import com.yuqih.common.annotation.ObjectCreator;
import com.yuqih.common.annotation.ObjectCreatorParam;
import com.yuqih.common.exception.CodedException;

public class BatchUpdateCodedException extends CodedException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@ObjectCreator
	public static BatchUpdateCodedException newInstance( 
			@ObjectCreatorParam("message")  String message,
			@ObjectCreatorParam("source") BatchUpdateException e) {
		return new BatchUpdateCodedException(message, e);
	}

	/**
	 * @param e
	 */
	public BatchUpdateCodedException(BatchUpdateException e) {
		super("123002", "数据库更新异常", e);
	}
	
	/**
	 * @param e
	 */
	public BatchUpdateCodedException(String message, BatchUpdateException e) {
		super("123002", message, e);
	}
	
}
